-- GENERATED SPELL FOR [Banthar] --


function spell0_18259(pUnit, Event) --@Hoof Stomp,Self--
pUnit:FullCastSpellOnTarget(32023,pUnit)
pUnit:RegisterEvent('Sorts_18259', 3000, 1)
end

function spell1_18259(pUnit, Event) --@Rushing Charge,n/a--
pUnit:FullCastSpellOnTarget(32021,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18259', 1333, 1)
end

function Sorts_18259(pUnit, Event)
local choix_sorts_18259 = math.random(0, 1)
if choix_sorts_18259 == 0 then
pUnit:RegisterEvent('spell0_18259', 1, 1)
end
if choix_sorts_18259 == 1 then
pUnit:RegisterEvent('spell1_18259', 1, 1)
end
end

function mob18259_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18259', math.random(1500, 3000), 1)
end

function mob18259_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18259_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18259_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18259, 1, 'mob18259_Action')
RegisterUnitEvent(18259, 2, 'mob18259_Leave')
RegisterUnitEvent(18259, 3, 'mob18259_Kill')
RegisterUnitEvent(18259, 4, 'mob18259_Die')
